const initialState = {
  count: 0
}

export default (state = initialState, { type, payload }) => {
  switch (type) {

    case 'increment':
      state.count += payload
      return { ...state }

    default:
      return state
  }
}
